package top.jiangyixin.cloud.ribbon.consumer.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import top.jiangyixin.cloud.ribbon.consumer.service.HelloService;

import javax.annotation.Resource;

/**
 * TODO
 * @version 1.0
 * @author jiangyixin
 * @date 2021/1/18 下午3:05
 */
@RestController
public class ConsumerController {
	
	@Resource
	private HelloService helloService;
	
	@GetMapping("/ribbon-consumer")
	public String helloConsumer() {
		return helloService.helloService();
	}
}
